package Homework4;

import java.util.*;

public class Homework4_6_TestCircle2D {
    public static void main(String[] args) {
        Scanner input =  new Scanner(System.in);
        double x,y,radius;
        x = input.nextDouble();
        y = input.nextDouble();
        radius = input.nextDouble();
        Circle2D c1 = new Circle2D(x, y, radius);
        System.out.println("Area is " + c1.getArea());
        System.out.println("Perimeter is " + c1.getPerimeter());
        System.out.println("c1 contains point (3, 3)? "
                + c1.contains(3, 3));
        System.out.println("c1 contains circle Circle2D(4, 5, 10.5)? "
                + c1.contains(new Circle2D(4, 5, 10.5)));
        System.out.println("c1 overlaps circle Circle2D(3, 5, 2.3)? "
                + c1.overlaps(new Circle2D(3, 5, 2.3)));
    }
}
